home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 1998 November / IRIX 6.5.2 Base Documentation November 1998.img / usr / share / catman / p_man / cat3 / Xm / XmTextFieldReplace.z / XmTextFieldReplace
Text File  |  1998-10-30  |  6KB  |  133 lines

  1.  
  2.  
  3.  
  4.      XXXXmmmmTTTTeeeexxxxttttFFFFiiiieeeellllddddRRRReeeeppppllllaaaacccceeee((((3333XXXX))))    UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV    XXXXmmmmTTTTeeeexxxxttttFFFFiiiieeeellllddddRRRReeeeppppllllaaaacccceeee((((3333XXXX))))
  5.  
  6.  
  7.  
  8.      NNNNAAAAMMMMEEEE
  9.           XXXXmmmmTTTTeeeexxxxttttFFFFiiiieeeellllddddRRRReeeeppppllllaaaacccceeee - A TextField function that replaces part
  10.           of a text string
  11.  
  12.      SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  13.           #include <Xm/TextF.h>
  14.           vvvvooooiiiidddd XXXXmmmmTTTTeeeexxxxttttFFFFiiiieeeellllddddRRRReeeeppppllllaaaacccceeee(
  15.           WWWWiiiiddddggggeeeetttt wwwwiiiiddddggggeeeetttt,
  16.           XXXXmmmmTTTTeeeexxxxttttPPPPoooossssiiiittttiiiioooonnnn ffffrrrroooommmm____ppppoooossss,
  17.           XXXXmmmmTTTTeeeexxxxttttPPPPoooossssiiiittttiiiioooonnnn ttttoooo____ppppoooossss,
  18.           cccchhhhaaaarrrr **** vvvvaaaalllluuuueeee);
  19.  
  20.      VVVVEEEERRRRSSSSIIIIOOOONNNN
  21.           This page documents Motif 2.1.
  22.  
  23.      DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  24.           XXXXmmmmTTTTeeeexxxxttttFFFFiiiieeeellllddddRRRReeeeppppllllaaaacccceeee replaces part of the text string in the
  25.           TextField widget. The character positions begin at 0 (zero)
  26.           and are numbered sequentially from the beginning of the
  27.           text.
  28.  
  29.           An example text replacement would be to replace the second
  30.           and third characters in the text string. To accomplish this,
  31.           the parameter _f_r_o_m__p_o_s must be 1 and _t_o__p_o_s must be 3. To
  32.           insert a string after the fourth character, both parameters,
  33.           _f_r_o_m__p_o_sand _t_o__p_o_s, must be 4.
  34.  
  35.           This routine calls the widget's XXXXmmmmNNNNvvvvaaaalllluuuueeeeCCCChhhhaaaannnnggggeeeeddddCCCCaaaallllllllbbbbaaaacccckkkk and
  36.           verification callbacks, either XXXXmmmmNNNNmmmmooooddddiiiiffffyyyyVVVVeeeerrrriiiiffffyyyyCCCCaaaallllllllbbbbaaaacccckkkk or
  37.           XXXXmmmmNNNNmmmmooooddddiiiiffffyyyyVVVVeeeerrrriiiiffffyyyyCCCCaaaallllllllbbbbaaaacccckkkkWWWWccccssss, or both. If both verification
  38.           callback lists are registered, the procedures of the
  39.           XXXXmmmmNNNNmmmmooooddddiiiiffffyyyyVVVVeeeerrrriiiiffffyyyyCCCCaaaallllllllbbbbaaaacccckkkk list are executed first and the
  40.           resulting data is passed to the XXXXmmmmNNNNmmmmooooddddiiiiffffyyyyVVVVeeeerrrriiiiffffyyyyCCCCaaaallllllllbbbbaaaacccckkkkWWWWccccssss
  41.           callbacks.  The XXXXmmmmNNNNmmmmoooottttiiiioooonnnnVVVVeeeerrrriiiiffffyyyyCCCCaaaallllllllbbbbaaaacccckkkk is generated if
  42.           _t_o__p_o_s is less than or equal to the cursor position and the
  43.           length of _v_a_l_u_e is not the same as the length of the text
  44.           being replaced, or if the cursor position is between
  45.           _f_r_o_m__p_o_s and _t_o__p_o_s, and the distance from the cursor
  46.           position to _f_r_o_m__p_o_s is greater than the length of _v_a_l_u_e.
  47.  
  48.           _w_i_d_g_e_t    Specifies the TextField widget ID
  49.  
  50.           _f_r_o_m__p_o_s  Specifies the start position of the text to be
  51.                     replaced
  52.  
  53.           _t_o__p_o_s    Specifies the end position of the text to be
  54.                     replaced
  55.  
  56.           _v_a_l_u_e     Specifies the character string value to be added
  57.                     to the text widget
  58.  
  59.           For a complete definition of TextField and its associated
  60.  
  61.  
  62.  
  63.      Page 1                                         (printed 10/24/98)
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.      XXXXmmmmTTTTeeeexxxxttttFFFFiiiieeeellllddddRRRReeeeppppllllaaaacccceeee((((3333XXXX))))    UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV    XXXXmmmmTTTTeeeexxxxttttFFFFiiiieeeellllddddRRRReeeeppppllllaaaacccceeee((((3333XXXX))))
  71.  
  72.  
  73.  
  74.           resources, see XXXXmmmmTTTTeeeexxxxttttFFFFiiiieeeelllldddd(3).
  75.  
  76.      RRRREEEELLLLAAAATTTTEEEEDDDD
  77.           XXXXmmmmTTTTeeeexxxxttttFFFFiiiieeeelllldddd(3).  XXXXmmmmTTTTeeeexxxxttttFFFFiiiieeeellllddddRRRReeeeppppllllaaaacccceeeeWWWWccccssss(3).
  78.  
  79.  
  80.  
  81.  
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.      Page 2                                         (printed 10/24/98)
  130.  
  131.  
  132.  
  133.